package com.lupan.spring.data.jpa.dao;

import com.lupan.classicsJava.jpa.domain.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/3/28 14:33
 */
public class StudentDaoTestFather extends AbstractTestNGSpringContextTests {
    @Autowired
    protected StudentDao studentDao;


    public SS test(String s1, String s2){
        Student student = new Student();
        student.setName("小刚");
        student.setNum("0005");
        studentDao.save(student);
        return new SS(true);
    }

    public class SS {
        private final boolean value;

        public SS(boolean value) {
            this.value = value;
        }

        public boolean getValue() {
            return value;
        }
    }
}
